package com.logistics.team3.po;
// default package

import java.util.HashSet;
import java.util.Set;


/**
 * 权限
 * Power entity. @author MyEclipse Persistence Tools
 */

public class Power  implements java.io.Serializable {


    // Fields    

     private String id;
     /**
      * 上级权限
      */
     private Power power;
     /**
      * 权限名称
      */
     private String powerName;
     /**
      * 权限值
      */
     private String powerValue;
     /**
      * 是否为菜单
      */
     private String menu;
     /**
      * 图标
      */
     private String icon;
     /**
      * 顺序
      */
     private String sortIndex;
     /**
      * 描述
      */
     private String remark;
     private Set powers = new HashSet(0);
     private Set rolePowers = new HashSet(0);


    // Constructors

    /** default constructor */
    public Power() {
    }

    
    /** full constructor */
    public Power(Power power, String powerName, String powerValue, String menu, String icon, String sortIndex, String remark, Set powers, Set rolePowers) {
        this.power = power;
        this.powerName = powerName;
        this.powerValue = powerValue;
        this.menu = menu;
        this.icon = icon;
        this.sortIndex = sortIndex;
        this.remark = remark;
        this.powers = powers;
        this.rolePowers = rolePowers;
    }

   
    // Property accessors

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }

    public Power getPower() {
        return this.power;
    }
    
    public void setPower(Power power) {
        this.power = power;
    }

    public String getPowerName() {
        return this.powerName;
    }
    
    public void setPowerName(String powerName) {
        this.powerName = powerName;
    }

    public String getPowerValue() {
        return this.powerValue;
    }
    
    public void setPowerValue(String powerValue) {
        this.powerValue = powerValue;
    }

    public String getMenu() {
        return this.menu;
    }
    
    public void setMenu(String menu) {
        this.menu = menu;
    }

    public String getIcon() {
        return this.icon;
    }
    
    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getSortIndex() {
        return this.sortIndex;
    }
    
    public void setSortIndex(String sortIndex) {
        this.sortIndex = sortIndex;
    }

    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Set getPowers() {
        return this.powers;
    }
    
    public void setPowers(Set powers) {
        this.powers = powers;
    }

    public Set getRolePowers() {
        return this.rolePowers;
    }
    
    public void setRolePowers(Set rolePowers) {
        this.rolePowers = rolePowers;
    }
}